import Vue from 'vue'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import App from './App'
import router from './router'
import store from './store/store.js'
import '@/assets/style/border.css'
import '@/assets/style/reset.css'
import '@/assets/style/iconfont.css'
import fastclick from 'fastclick'
import 'swiper/dist/css/swiper.css'
import LyTab from 'ly-tab'
import 'mint-ui/lib/style.css'

Vue.use(LyTab)
Vue.config.productionTip = false
fastclick.attach(document.body)
Vue.use(VueAwesomeSwiper)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  mounted(){
    var map = new BMap.Map('allmap')
    var myCity = new BMap.LocalCity()
    myCity.get((result)=>{
        if(result){
            this.$store.state.city = result.name
        }else{
            this.$store.state.city = '大荔'
        }
    })
  },
  // components:{App},
  // template:`<App/>`,
  render: h => h(App)
})
